﻿<UserControl x:Class="Flare.Pages.ITContract.Details"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" xmlns:Controls="clr-namespace:Flare.Controls"
      d:DesignHeight="800" d:DesignWidth="1000" >

    <DockPanel LastChildFill="False">
        <TextBlock Style="{StaticResource HeaderPageText}" Text="{Binding contract_name, FallbackValue=contract_name}" 
                       VerticalAlignment="Center" DockPanel.Dock="Top" Margin="10,0,0,0"/>
        <DockPanel DockPanel.Dock="Top" LastChildFill="False">
            <Label Name="EditThis" Content="Редактировать" DockPanel.Dock="Left" Style="{StaticResource StyleUrl}" MouseLeftButtonUp="EditThis_MouseLeftButtonDown" />
            <Label Name="RemoveThis"  Content="Удалить" DockPanel.Dock="Left" Style="{StaticResource StyleUrl}" MouseLeftButtonUp="RemoveThis_MouseLeftButtonDown" />
        </DockPanel>

        <Controls:FlameTblock Header="Договор (номер, дата)" Content="{Binding contract_number, FallbackValue=contract_number}" Margin="10,40,0,0" DockPanel.Dock="Top"/>
        <Controls:FlameTblock Header="Адрес выполнения" Content="{Binding contract_region, FallbackValue=contract_region}" Margin="10,10,0,0" DockPanel.Dock="Top"/>
        <Controls:FlameTblock Header="Контактное лицо банка" Content="{Binding contract_bank_contact, FallbackValue=contract_bank_contact}" Margin="10,10,0,0" DockPanel.Dock="Top"/>
        <Controls:FlameTblock Header="Контактный телефон" Content="{Binding contract_bank_contact_phone, FallbackValue=contract_bank_contact_phone}" Margin="10,10,0,0" DockPanel.Dock="Top"/>
        <Controls:FlameTblock Header="Поставщик" Content="{Binding contract_provider, FallbackValue=contract_provider}" Margin="10,10,0,0" DockPanel.Dock="Top"/>

        <TextBlock Text="Телефоны провайдера" Foreground="{StaticResource ColorTextBackground}" FontSize="20" FontFamily="Segoe UI Light" 
                   Margin="15,10,0,0" DockPanel.Dock="Top"/>
        
        <ListBox Margin="20,0,20,20" ItemsSource="{Binding contract_provider_phones}"
                 HorizontalAlignment="Stretch" SelectionMode="Single" Style="{StaticResource StylePhoneList}" DockPanel.Dock="Top"/>

        <Controls:FlameTblock Header="Примечание к договору" Content="{Binding contract_description, FallbackValue=contract_description}" 
                              Margin="10,10,0,0" DockPanel.Dock="Top"/>
    </DockPanel>
</UserControl>
